Skip to content

feat(api): CCC_OnSenderPrefix forward - #123

Merged
Rushaway merged 1 commit into
masterfrom
feat/sender-prefix-forward
Nov 23, 2026
Merged

Rushaway merged 1 commit into
masterfrom
feat/sender-prefix-forward

Conversation

@Rushaway

Copy link
Copy Markdown
Member

New forward CCC_OnSenderPrefix(int client, char[] prefix, int maxlen), called while CCC builds the sender name of a chat line, for every author (CCC flags or not, not for /me actions). The prefix goes before the CCC tag and the name. It is colored by CCC's own pass for enabled authors, and with CFormatColor for the others (their sender is already colored at that point).

Why: CCC blocks every chat SayText2 and sends its own line with USERMSG_BLOCKHOOKS, so another plugin cannot add anything to chat lines. srcdslab/sm-plugin-GunGameProgression uses it to show a rank tag ([Sergeant II]) before the player's own CCC tag, without touching the CCC tag in memory or in the database.

Backward compatible: no change without a plugin implementing the forward. Version 8.2.0 (ccc.inc).

Built with spcomp 1.13.0.7427, no warning.

Checked

  • On the GunGame server (2026-11-23): *SPEC* [Command Sergeant Major] <CCC tag> .Rushaway : test rank tag, rank tag in its color, CCC tag unchanged

@Rushaway Rushaway added enhancement New feature or request priority: medium Medium priority area: api labels Nov 23, 2026
@Rushaway
Rushaway merged commit a8606b6 into master Nov 23, 2026
11 checks passed
@Rushaway
Rushaway deleted the feat/sender-prefix-forward branch November 23, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: api enhancement New feature or request priority: medium Medium priority

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant